package com.mew.slots.core.game.kbwsj.message;


import com.mew.common.util.PbWriteUtils;
import com.mew.slots.core.common.messge.response.SlotsPlayResponseMessage;
import io.netty.buffer.ByteBuf;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.List;

/**
 * @Description: TODO
 * @Author King.Song
 * @Date 2020/11/10 0010
 **/
@Data
@ToString(callSuper = true)
@NoArgsConstructor
public class KbwsjPlayResponseMessage extends SlotsPlayResponseMessage {
    //在第几关
    public int seat;
    //吸血鬼进度
    public int vampire;
    //那种免费
    public int freeType;

    public int bouns;

    public int turntable;

    public long bounsGold;

    public int freeCount;
    //触发吸血鬼
    public int isVampire;

    public long vampireWin;

    public int[] vampireBox = new int[8];
    //任务
    public int[][] task;

    public int[][] oldTask;

    public List<int[]> allSlots;

    public String coins;

    public int w2;

    public long betAvg;

    @Override
    public void write(ByteBuf b) {
        super.write(b);

        PbWriteUtils.attr2byte(this,b);

        writeIntArray(b,vampireBox);

        writeInt(b,task.length);
        for (int[] ints : task) {
            writeIntArray(b,ints);
        }

        writeInt(b,oldTask.length);
        for (int[] ints : oldTask) {
            writeIntArray(b,ints);
        }

        writeInt(b,allSlots.size());
        for (int[] ints : allSlots) {
            writeIntArray(b,ints);
        }

        //给前端发string
        writeString(b,coins);

        writeInt(b,w2);
        writeLong(b,betAvg);

    }

    @Override
    public SlotsPlayResponseMessage read(ByteBuf byteBuf) {
        return null;
    }


}
